<template>
  <div class="paihang">
    <div class="fu_flex">
      <h2>排行榜</h2>
      <span>更多》</span>
    </div>
    <div class="heng">
      <div class="lunbo">
        <Xiaolunbo :mess="mess.lunbo"></Xiaolunbo>
      </div>
      <div class="xnxika">
        <div
          v-for="(item, index) in mess.rege"
          :key="index"
          class="xnxika_heng"
        >
          <div class="heng_1">
            <div class="id">{{ index + 1 }}</div>

            <div class="img">
              <img :src="item.img" alt="" />
            </div>
            <div>{{ item.name }}</div>
          </div>
          <div class="shijian">{{ item.shijian }}</div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import Xiaolunbo from "./Xiaolunbo.vue";
export default {
  name: "Paihang",
  components: {
    Xiaolunbo,
  },
  props: ["mess"],
};
</script>
<style lang="less" scoped>
.paihang {
  width: 1400px;
  margin: 0 auto;
  .fu_flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
  }
  .heng {
    display: flex;
    .heng_1 {
      display: flex;
      align-items: center;
      .id {
        width: 40px;
        height: 40px;
        text-align: center;
        line-height: 40px;
      }
    }
    .shijian {
      padding: 0 10px 0 0;
    }
  }
  .xnxika {
    width: 820px;
    height: 432px;
    overflow: auto;
    .xnxika_heng {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 6px 0;
      .img {
        width: 60px;
        height: 60px;
        padding: 0 40px 0 0;

        img {
          width: 100%;
        }
      }
    }
  }
}
</style>
